#ifndef __MAX_DISTANCE_H__
#define __MAX_DISTANCE_H__

#include <vector>
// Given an array A of integers, find the maximum of j-i 
// subjected to the constraint of A[i] < A[j].

int maxDistance(std::vector<int> input, int &start, int &end);

#endif

